package com.ruoyi.business.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BusinessComponentReturnValueVersionMapper;
import com.ruoyi.business.domain.BusinessComponentReturnValueVersion;
import com.ruoyi.business.service.IBusinessComponentReturnValueVersionService;

/**
 * 业务组件功能点返回值Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-14
 */
@Service
public class BusinessComponentReturnValueVersionServiceImpl implements IBusinessComponentReturnValueVersionService 
{
    @Autowired
    private BusinessComponentReturnValueVersionMapper businessComponentReturnValueVersionMapper;

    /**
     * 查询业务组件功能点返回值
     * 
     * @param id 业务组件功能点返回值主键
     * @return 业务组件功能点返回值
     */
    @Override
    public BusinessComponentReturnValueVersion selectBusinessComponentReturnValueVersionById(Long id)
    {
        return businessComponentReturnValueVersionMapper.selectBusinessComponentReturnValueVersionById(id);
    }

    /**
     * 查询业务组件功能点返回值列表
     * 
     * @param businessComponentReturnValueVersion 业务组件功能点返回值
     * @return 业务组件功能点返回值
     */
    @Override
    public List<BusinessComponentReturnValueVersion> selectBusinessComponentReturnValueVersionList(BusinessComponentReturnValueVersion businessComponentReturnValueVersion)
    {
        return businessComponentReturnValueVersionMapper.selectBusinessComponentReturnValueVersionList(businessComponentReturnValueVersion);
    }

    /**
     * 新增业务组件功能点返回值
     * 
     * @param businessComponentReturnValueVersion 业务组件功能点返回值
     * @return 结果
     */
    @Override
    public int insertBusinessComponentReturnValueVersion(BusinessComponentReturnValueVersion businessComponentReturnValueVersion)
    {
        businessComponentReturnValueVersion.setCreateTime(DateUtils.getNowDate());
        return businessComponentReturnValueVersionMapper.insertBusinessComponentReturnValueVersion(businessComponentReturnValueVersion);
    }

    /**
     * 修改业务组件功能点返回值
     * 
     * @param businessComponentReturnValueVersion 业务组件功能点返回值
     * @return 结果
     */
    @Override
    public int updateBusinessComponentReturnValueVersion(BusinessComponentReturnValueVersion businessComponentReturnValueVersion)
    {
        businessComponentReturnValueVersion.setUpdateTime(DateUtils.getNowDate());
        return businessComponentReturnValueVersionMapper.updateBusinessComponentReturnValueVersion(businessComponentReturnValueVersion);
    }

    /**
     * 批量删除业务组件功能点返回值
     * 
     * @param ids 需要删除的业务组件功能点返回值主键
     * @return 结果
     */
    @Override
    public int deleteBusinessComponentReturnValueVersionByIds(Long[] ids)
    {
        return businessComponentReturnValueVersionMapper.deleteBusinessComponentReturnValueVersionByIds(ids);
    }

    /**
     * 删除业务组件功能点返回值信息
     * 
     * @param id 业务组件功能点返回值主键
     * @return 结果
     */
    @Override
    public int deleteBusinessComponentReturnValueVersionById(Long id)
    {
        return businessComponentReturnValueVersionMapper.deleteBusinessComponentReturnValueVersionById(id);
    }
}
